import './App.css'
import {Layout} from 'antd'
import {Routes,Route} from 'react-router-dom'
import AppHeader from './components/AppHeaders'
import Products from './pages/Products'
import Orders from './pages/Orders'
const {Content} = Layout
function App() {
 return (
  <Layout>
    <AppHeader />
    <Content>
      <Routes>
        <Route path="/" element={<Products />}></Route>
        <Route path="/orders" element={<Orders />}></Route>
      </Routes>
    </Content>
  </Layout>
 )
}

export default App
